package ru.exigenservices.intern.webapp.action;
import org.springframework.beans.factory.annotation.Required;
import ru.exigenservices.intern.model.Group;
import ru.exigenservices.intern.service.AddressBookService;

import java.util.List;

public class GroupList {
    public List<Group> getGroups(){
        return  addressBookService.getGroups();
    }

    @Required
      public void setAddressBookService(AddressBookService addressBookService) {
        this.addressBookService = addressBookService;

    }

    private AddressBookService addressBookService;
}
